<template>
    <div style="width: 100%;height:100%">
        <div id="deawer">
            <v-tableTitle :btnConfig="btnConfig" @cancel="cancel"></v-tableTitle>
             <iframe :src="src" frameborder="0" width="100%" height="100%"></iframe>
           
        </div>
    </div>

</template>

<script>
import baseMixin from "@/mixins/BaseMixin";
import skipMixin from "@/mixins/SkipMixin";

import tableTitle from "commons/TableTitle";

import config from "../Config";

export default {
    name: "",
    mixins: [baseMixin, skipMixin, config],
    data() {
        return {
            newFlag: false,
            routeData: {},
            src: ""
        };
    },
    computed: {
        btnConfig() {
            return [
                {label: this.$t('common.return'), invalid: "cancel"},
            ]
        }
    },
    created() {
    },
    methods: {

        //弹框取消
        cancel() {
            this.$router.go(-1);
        },
    },
    mounted() {

        if (Object.keys(this.$store.state.skip).length !== 0) {
            let data = this.$store.state.skip;
            this.routeData = data.routeData;
            this.src = data.src;
        } else {
            this.src = this.$route.params.url
        }
    },
    watch: {},
    components: {
        "v-tableTitle": tableTitle,
    }
}
</script>

<style scoped>

</style>
